﻿<pre class="prettyprint linenums">
   @*   <script type="text/javascript">
        var clickMe = function () {
            alert("Hello from client event.");
        }
    </script>*@

    @@{
         Html.Bop().Button()
                   .Text("Click Me")
                   .ClientEvents(e => 
                        e.Add().Register(EventNames.OnClick, "clickMe();"))
                   .Render();
    }
  </pre>

